import { IPSAppView } from '../../app/view/ipsapp-view';
import { IPSAutoComplete } from './ipsauto-complete';
import { IPSPickerEditor } from './ipspicker-editor';
import { IPSValueItemEditor } from './ipsvalue-item-editor';

/**
 *
 * 继承父接口类型值[PICKER,MOBPICKER,PICKEREX_LINK,PICKEREX_NOAC,PICKEREX_TRIGGER,PICKEREX_LINKONLY,PICKEREX_NOBUTTON,PICKEREX_NOAC_LINK,PICKEREX_DROPDOWNVIEW,PICKEREX_TRIGGER_LINK,MOBPICKER_DROPDOWNVIEW,PICKEREX_DROPDOWNVIEW_LINK]
 * @export
 * @interface IPSPicker
 */
export interface IPSPicker
  extends IPSPickerEditor,
    IPSValueItemEditor,
    IPSAutoComplete {
  /**
   * 下拉视图高度[DROPDOWNVIEWHEIGHT]
   * @type {number}
   */
  dropDownViewHeight: number;

  /**
   * 下拉视图宽度[DROPDOWNVIEWWIDTH]
   * @type {number}
   */
  dropDownViewWidth: number;

  /**
   * 数据链接视图
   *
   * @type {IPSAppView}
   */
  getLinkPSAppView(): IPSAppView | null;

  /**
   * 下拉选择视图
   * @type {boolean}
   * @default false
   */
  dropDownView: boolean;

  /**
   * 支持链接视图
   * @type {boolean}
   * @default false
   */
  enableLinkView: boolean;

  /**
   * 支持选择视图
   * @type {boolean}
   */
  enablePickupView: boolean;

  /**
   * 单项选择
   * @type {boolean}
   */
  singleSelect: boolean;
}
